package com.demo.ex03.entity;

import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

import com.demo.common.entity.BaseEntity;

@Entity
@Table(name="t_plane")
//@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)//不可以使用IDENTITY策略
//@Inheritance(strategy=InheritanceType.JOINED)
//@Inheritance(strategy=InheritanceType.SINGLE_TABLE)//默认
//@DiscriminatorColumn(name="planeType")
//@DiscriminatorValue("p1")
public class Plane extends BaseEntity<Long>
{
	//private Long id;
	private String planeName;
	
//	@Id
//	@GeneratedValue(strategy=GenerationType.IDENTITY)
//	//@GeneratedValue(strategy=GenerationType.SEQUENCE)
//	public Long getId() {
//		return id;
//	}
	
	public String getPlaneName() {
		return planeName;
	}
//	public void setId(Long id) {
//		this.id = id;
//	}
	public void setPlaneName(String planeName) {
		this.planeName = planeName;
	}
	
	
	
}
